<?

define('MEMBERSHIP',true);
define('GENDER_CHANGE',false);

// access levels
define('UID',$_SESSION['UID']);
define('USERNAME',$_SESSION['username']);
define('EMAIL',$_SESSION['email']);
define('FIRSTNAME',$_SESSION['name']);
define('LASTNAME',$_SESSION['lastname']);
define('FULLNAME',$_SESSION['name'].' '.$_SESSION['lastname']);
define('LASTLOGIN',$_SESSION['lastlogin']);
define('UNCONFIRMED',$_SESSION['access']<0);
define('ACCESS',abs($_SESSION['access']));
define('DEV',ACCESS==8);
define('ADMIN',ACCESS>=7);
define('EDITOR',ACCESS>=6);
define('GOLD',ACCESS>=5);
define('SILVER',ACCESS==4);
define('NORM',ACCESS==3);
define('MEMBER',ACCESS>=3);
define('NOMINEE',ACCESS==2);
define('BANNED',ACCESS==1);
define('DELETED',ACCESS==0);

define('JOINACCESS',-3); //UNCONFIRMED - MEMBER

if(UNCONFIRMED&&($_GET['cmd'] != 'confirm'&&$_GET['cmd'] != 'logout')) {
    $_GET['app'] = 'account';
    $_GET['cmd'] = 'confirmation';
}
?>